Merge pull request #2173 from yurydelendik/issue-2172

Fixes function declaration for strict mode
This commit is contained in:
Brendan Dahl 2012-09-26 16:48:27 -07:00
commit 5289a87a65

View File

@ -100,7 +100,7 @@
// and thus the native version is not sufficient // and thus the native version is not sufficient
Object.defineProperty(new Image(), 'id', { value: 'test' }); Object.defineProperty(new Image(), 'id', { value: 'test' });
// ... another test for android gb browser for non-DOM objects // ... another test for android gb browser for non-DOM objects
function Test() {} var Test = function Test() {};
Test.prototype = { get id() { } }; Test.prototype = { get id() { } };
Object.defineProperty(new Test(), 'id', Object.defineProperty(new Test(), 'id',
{ value: '', configurable: true, enumerable: true, writable: false }); { value: '', configurable: true, enumerable: true, writable: false });