We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CallSite
1 parent 5766495 commit 0a28b7aCopy full SHA for 0a28b7a
core/error.rs
@@ -1020,8 +1020,8 @@ fn make_patched_callsite<'s>(
1020
callsite: v8::Local<'s, v8::Object>,
1021
prototype: v8::Local<'s, v8::Object>,
1022
) -> v8::Local<'s, v8::Object> {
1023
- let out_obj = Object::new(scope);
1024
- out_obj.set_prototype(scope, prototype.into());
+ let out_obj =
+ Object::with_prototype_and_properties(scope, prototype.into(), &[], &[]);
1025
let orig_key = original_call_site_key(scope);
1026
out_obj.set_private(scope, orig_key, callsite.into());
1027
out_obj
0 commit comments