From e166f6fe95fdae4b2e48565e1b1afdbd4bef4aa2 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Wed, 16 Sep 2015 23:50:03 +0200 Subject: [PATCH] fix(browser): make Firefox to work with es6-shim es6-shim.js must be loaded first --- karma-js.conf.js | 5 +++-- tools/broccoli/html-replace/SCRIPTS.html | 2 +- tools/broccoli/html-replace/SCRIPTS_benchmarks.html | 2 +- tools/broccoli/html-replace/SCRIPTS_benchmarks_external.html | 2 +- tools/broccoli/js-replace/SCRIPTS.js | 2 +- tools/broccoli/trees/browser_tree.ts | 4 ++-- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/karma-js.conf.js b/karma-js.conf.js index 011b93e4035..275c95c8ca6 100644 --- a/karma-js.conf.js +++ b/karma-js.conf.js @@ -12,12 +12,13 @@ module.exports = function(config) { // Loaded through the System loader, in `test-main.js`. {pattern: 'dist/js/dev/es5/**', included: false, watched: false}, + 'node_modules/es6-shim/es6-shim.js', + // zone-microtask must be included first as it contains a Promise monkey patch 'node_modules/zone.js/dist/zone-microtask.js', 'node_modules/zone.js/dist/long-stack-trace-zone.js', 'node_modules/zone.js/dist/jasmine-patch.js', - - 'node_modules/es6-shim/es6-shim.js', + // Including systemjs because it defines `__eval`, which produces correct stack traces. 'modules/angular2/src/test_lib/shims_for_IE.js', 'node_modules/systemjs/dist/system.src.js', diff --git a/tools/broccoli/html-replace/SCRIPTS.html b/tools/broccoli/html-replace/SCRIPTS.html index 40ae9eb80ef..1566e0e9c6f 100644 --- a/tools/broccoli/html-replace/SCRIPTS.html +++ b/tools/broccoli/html-replace/SCRIPTS.html @@ -1,6 +1,6 @@ + - - -