LibJS: Don't define the "prototype" property for arrow functions

This commit is contained in:
Jack Karamanian 2020-05-30 00:15:17 -05:00 committed by Andreas Kling
commit 1110b1b444
Notes: sideshowbarker 2024-07-19 05:58:22 +09:00
2 changed files with 6 additions and 1 deletions

View file

@ -77,6 +77,10 @@ try {
assert(foobar.x.y() === foobar);
assert(foobar.x.z() === foobar.x);
var Baz = () => {};
assert(Baz.prototype === undefined);
(() => {
"use strict";
assert(isStrictMode());