mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 12:11:50 +00:00
Add ArrayBuffer/DataView/Symbol#toString and improve Errors (#332)
This commit is contained in:
@ -22,6 +22,14 @@ var key4 = Symbol.keyFor(sym4);
|
||||
assert(key3 == "123");
|
||||
assert(key3 == key4);
|
||||
|
||||
assert(Symbol().toString() == "Symbol()");
|
||||
assert(sym3.toString() == "Symbol(123)");
|
||||
|
||||
var hasInstance = Symbol.hasInstance;
|
||||
var isConcatSpreadable = Symbol.isConcatSpreadable;
|
||||
assert(hasInstance.toString() == "Symbol(hasInstance)");
|
||||
assert(isConcatSpreadable.toString() == "Symbol(isConcatSpreadable)");
|
||||
|
||||
Symbol.hasInstance;
|
||||
Symbol.concatSpreadable;
|
||||
Symbol.isConcatSpreadable;
|
||||
// ...
|
||||
|
Reference in New Issue
Block a user