summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/extensions/proxy-strict.js
blob: 9dc9696853e9cb0e651b9bf8b5ce49ec3057389b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

var s = "grape";
function f() { "use strict"; return this; }
var p = new Proxy(f, {});
String.prototype.p = p;
assertEq(s.p(), "grape");

reportCompare(true,true);