| Index: test/webkit/fast/js/Promise-init-callback-receiver.js
|
| diff --git a/test/webkit/indexed-setter-on-global-object.js b/test/webkit/fast/js/Promise-init-callback-receiver.js
|
| similarity index 82%
|
| copy from test/webkit/indexed-setter-on-global-object.js
|
| copy to test/webkit/fast/js/Promise-init-callback-receiver.js
|
| index 20c70c24f5e5b8f887cc8ec8f1d4fbd99431c45d..af06ad2e545a28b6b92195c287c2c15733ad898c 100644
|
| --- a/test/webkit/indexed-setter-on-global-object.js
|
| +++ b/test/webkit/fast/js/Promise-init-callback-receiver.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2013 the V8 project authors. All rights reserved.
|
| +// Copyright 2014 the V8 project authors. All rights reserved.
|
| // Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
|
| //
|
| // Redistribution and use in source and binary forms, with or without
|
| @@ -21,16 +21,12 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -description(
|
| -"Tests that creating an indexed setter on the global object doesn't break things."
|
| -);
|
| +// Flags: --harmony
|
| +'use strict';
|
| +description('|this| in Promise constructor should be undefined.');
|
|
|
| -var thingy;
|
| -
|
| -this.__defineSetter__(42, function(value) {
|
| - thingy = value;
|
| +var receiverInStrict;
|
| +new Promise(function () {
|
| + receiverInStrict = this;
|
| + shouldBe('receiverInStrict', 'undefined');
|
| });
|
| -
|
| -this[42] = "foo";
|
| -
|
| -shouldBe("thingy", "\"foo\"");
|
|
|