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

Unified Diff: test/cctest/test-extra.js

Issue 1128113006: Add the concept of a V8 extras exports object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Was mising test-extra.js :( Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/debug-script.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-extra.js
diff --git a/test/message/regress/regress-3995.js b/test/cctest/test-extra.js
similarity index 59%
copy from test/message/regress/regress-3995.js
copy to test/cctest/test-extra.js
index ba84bc096527cc242b9ad43983b42eec0462c43c..4584352d1d5d4b7c6a369f23691538bd283dacda 100644
--- a/test/message/regress/regress-3995.js
+++ b/test/cctest/test-extra.js
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-(function() {
- throw new Error("boom");
+(function () {
+ 'use strict';
+
+ extrasExports.testExtraShouldReturnFive = function () {
+ return 5;
+ };
})();
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/mjsunit/debug-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698