Skip to content

Commit

Permalink
more tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Jul 20, 2023
1 parent 49c29c3 commit 9073b74
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions testsrc/jstests/es6/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,8 @@ function TestCall() {
assertTrue(symbols[i].getThisProto() === Symbol.prototype)
}
}
// Rhino not sure what's up! TestCall()
TestCall()

/* Rhino no collections

function TestCollections() {
var set = new Set
Expand All @@ -269,7 +268,6 @@ function TestCollections() {
}
TestCollections()

*/

function TestKeySet(obj) {
//assertTrue(%HasFastProperties(obj))
Expand Down Expand Up @@ -356,7 +354,6 @@ function TestKeyDelete(obj) {
}


/* Rhino no Map
var objs = [{}, [], Object.create({}), Object(1), new Map, function(){}]

for (var i in objs) {
Expand All @@ -371,7 +368,7 @@ for (var i in objs) {
TestKeyDescriptor(obj)
TestKeyDelete(obj)
}
*/


function TestDefineProperties() {
var properties = {}
Expand Down Expand Up @@ -567,7 +564,7 @@ function TestStringify(expected, input) {
JSON.stringify(input, (key, value) => value, "="));
}

// Rhino TestStringify(undefined, Symbol("a"));
TestStringify(undefined, Symbol("a"));
TestStringify('[{}]', [Object(Symbol())]);
var symbol_wrapper = Object(Symbol("a"))
TestStringify('{}', symbol_wrapper);
Expand Down

0 comments on commit 9073b74

Please sign in to comment.