diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es6/function-name.js')
-rw-r--r-- | deps/v8/test/mjsunit/es6/function-name.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/es6/function-name.js b/deps/v8/test/mjsunit/es6/function-name.js index 0fcab441ed..3b0a6fcacb 100644 --- a/deps/v8/test/mjsunit/es6/function-name.js +++ b/deps/v8/test/mjsunit/es6/function-name.js @@ -73,6 +73,8 @@ static 43() { } get 44() { } set 44(val) { } + static get constructor() { } + static set constructor(val) { } }; assertEquals('a', C.prototype.a.name); @@ -85,6 +87,9 @@ var descriptor = Object.getOwnPropertyDescriptor(C.prototype, '44'); assertEquals('get 44', descriptor.get.name); assertEquals('set 44', descriptor.set.name); + var descriptor = Object.getOwnPropertyDescriptor(C, 'constructor'); + assertEquals('get constructor', descriptor.get.name); + assertEquals('set constructor', descriptor.set.name); })(); (function testComputedProperties() { |