Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: test/mjsunit/harmony/regress/regress-343928.js

Issue 1804693002: Remove --harmony-modules flag and let embedder decide when modules are used (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --harmony-modules --expose-debug-as=debug
6
7 (function () { // Scope for utility functions.
8 escaping_function = function(object) {
9 // Argument must not be null or undefined.
10 var string = Object.prototype.toString.call(object);
11 // String has format [object <ClassName>].
12 return string.substring(8, string.length - 1);
13 }
14 })();
15
16 module B {
17 var stuff = 3
18 }
19
20 var __v_0 = {};
21 var __v_4 = debug.MakeMirror(__v_0);
22 print(__v_4.referencedBy().length); // core dump here if not fixed.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698