Skip to content

Commit

Permalink
fix copy & paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Sep 22, 2024
1 parent 9ecc291 commit 94faac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
4 changes: 2 additions & 2 deletions rhino/src/main/java/org/mozilla/javascript/NativeObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,9 @@ public Object execIdCall(

boolean status =
AbstractEcmaObjectOperations.setIntegrityLevel(
cx, arg, AbstractEcmaObjectOperations.INTEGRITY_LEVEL.SEALED);
cx, arg, AbstractEcmaObjectOperations.INTEGRITY_LEVEL.FROZEN);
if (!status) {
throw ScriptRuntime.typeError("Object is not sealable");
throw ScriptRuntime.typeError("Object is not freezable");
}

return arg;
Expand Down
25 changes: 1 addition & 24 deletions tests/testsrc/test262.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ built-ins/Number 23/335 (6.87%)
S9.3.1_A3_T1_U180E.js {unsupported: [u180e]}
S9.3.1_A3_T2_U180E.js {unsupported: [u180e]}

built-ins/Object 212/3408 (6.22%)
built-ins/Object 189/3408 (5.55%)
assign/assignment-to-readonly-property-of-target-must-throw-a-typeerror-exception.js
assign/not-a-constructor.js
assign/source-own-prop-error.js
Expand Down Expand Up @@ -1102,26 +1102,6 @@ built-ins/Object 212/3408 (6.22%)
entries/not-a-constructor.js
entries/observable-operations.js
entries/order-after-define-property-with-function.js
freeze/15.2.3.9-2-a-1.js
freeze/15.2.3.9-2-a-10.js
freeze/15.2.3.9-2-a-11.js
freeze/15.2.3.9-2-a-13.js
freeze/15.2.3.9-2-a-14.js
freeze/15.2.3.9-2-a-2.js
freeze/15.2.3.9-2-a-7.js
freeze/15.2.3.9-2-a-8.js
freeze/15.2.3.9-2-a-9.js
freeze/15.2.3.9-2-b-i-1.js
freeze/15.2.3.9-2-b-i-2.js
freeze/15.2.3.9-2-d-1.js
freeze/15.2.3.9-2-d-2.js
freeze/15.2.3.9-2-d-7.js
freeze/15.2.3.9-2-d-9.js
freeze/15.2.3.9-4-1.js
freeze/15.2.3.9-4-2.js
freeze/15.2.3.9-4-3.js
freeze/frozen-object-contains-symbol-properties-non-strict.js non-strict
freeze/frozen-object-contains-symbol-properties-strict.js strict
freeze/not-a-constructor.js
freeze/proxy-no-ownkeys-returned-keys-order.js
freeze/proxy-with-defineProperty-handler.js
Expand Down Expand Up @@ -1152,9 +1132,6 @@ built-ins/Object 212/3408 (6.22%)
hasOwn/symbol_property_valueOf.js
internals/DefineOwnProperty/consistent-value-regexp-dollar1.js
isExtensible/not-a-constructor.js
isFrozen/15.2.3.12-1-5.js
isFrozen/15.2.3.12-1-6.js
isFrozen/15.2.3.12-1-7.js
isFrozen/not-a-constructor.js
isFrozen/proxy-no-ownkeys-returned-keys-order.js
isSealed/not-a-constructor.js
Expand Down

0 comments on commit 94faac2

Please sign in to comment.