From 332cb20fcc870ef4747c99a1179348d058eb1f0c Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Wed, 26 Sep 2012 16:43:11 -0700 Subject: [PATCH] Fixes function declaration for strict mode --- web/compatibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/compatibility.js b/web/compatibility.js index bf06168da..4f29c3ff4 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -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 });