Browse Source

Fix wrong name of `Function.prototype[Symbol.hasInstance]` (#2905)

pull/2906/head
raskad 2 years ago committed by GitHub
parent
commit
c2205052bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      boa_engine/src/builtins/function/mod.rs

2
boa_engine/src/builtins/function/mod.rs

@ -443,7 +443,7 @@ impl IntrinsicObject for BuiltInFunctionObject {
let _timer = Profiler::global().start_event("function", "init"); let _timer = Profiler::global().start_event("function", "init");
let has_instance = BuiltInBuilder::callable(realm, Self::has_instance) let has_instance = BuiltInBuilder::callable(realm, Self::has_instance)
.name("[Symbol.iterator]") .name("[Symbol.hasInstance]")
.length(1) .length(1)
.build(); .build();

Loading…
Cancel
Save