mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #2173 from yurydelendik/issue-2172
Fixes function declaration for strict mode
This commit is contained in:
commit
5289a87a65
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@
|
|||
// and thus the native version is not sufficient
|
||||
Object.defineProperty(new Image(), 'id', { value: 'test' });
|
||||
// ... another test for android gb browser for non-DOM objects
|
||||
function Test() {}
|
||||
var Test = function Test() {};
|
||||
Test.prototype = { get id() { } };
|
||||
Object.defineProperty(new Test(), 'id',
|
||||
{ value: '', configurable: true, enumerable: true, writable: false });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue