michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: /* Verify that GETTHISPROP does not update the frame's |this| slot. */ michael@0: michael@0: var f = String.prototype.m = function () { michael@0: "use strict"; michael@0: assertEq(this, "s"); michael@0: // The GETTHISPROP should not cause |this| to become wrapped. michael@0: return [this.m, this]; michael@0: }; michael@0: var a = "s".m(); michael@0: assertEq(a[0], f); michael@0: assertEq(a[1], "s"); michael@0: michael@0: reportCompare(true, true);