Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
v0.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 22, 2015
1 parent 673d160 commit 6be8fd2
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dist/es6-module-loader-dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es6-module-loader-dev.js.map

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions dist/es6-module-loader-dev.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@
var newErr;
if (err instanceof Error) {
var newErr = new Error(err.message, err.fileName, err.lineNumber);
newErr.message = err.message + '\n\t' + msg;
newErr.stack = err.stack;
if (isBrowser) {
newErr.message = err.message + '\n\t' + msg;
newErr.stack = err.stack;
}
else {
// node errors only look correct with the stack modified
newErr.message = err.message;
newErr.stack = err.stack + '\n\t' + msg;
}
}
else {
newErr = err + '\n\t' + msg;
Expand Down Expand Up @@ -82,7 +89,13 @@
throw new TypeError('No environment baseURI');
}

var URL = typeof __global.URL == 'function' && __global.URL || URLPolyfill;
var URL = __global.URL;
try {
new URL('test:///').protocol == 'test:';
}
catch(e) {
URL = URLPolyfill;
}

/*
*********************************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions dist/es6-module-loader.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/es6-module-loader.js.map

Large diffs are not rendered by default.

23 changes: 20 additions & 3 deletions dist/es6-module-loader.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@
var newErr;
if (err instanceof Error) {
var newErr = new Error(err.message, err.fileName, err.lineNumber);
newErr.message = err.message + '\n\t' + msg;
newErr.stack = err.stack;
if (isBrowser) {
newErr.message = err.message + '\n\t' + msg;
newErr.stack = err.stack;
}
else {
// node errors only look correct with the stack modified
newErr.message = err.message;
newErr.stack = err.stack + '\n\t' + msg;
}
}
else {
newErr = err + '\n\t' + msg;
Expand Down Expand Up @@ -82,7 +89,13 @@
throw new TypeError('No environment baseURI');
}

var URL = typeof __global.URL == 'function' && __global.URL || URLPolyfill;
var URL = __global.URL;
try {
new URL('test:///').protocol == 'test:';
}
catch(e) {
URL = URLPolyfill;
}

/*
*********************************************************************************************
Expand Down Expand Up @@ -890,6 +903,10 @@ function logloads(loads) {
}

function doEnsureEvaluated() {}

function transpile() {
throw new TypeError('ES6 transpilation is only provided in the dev module loader build.');
}
})();
// from https://gist.github.com/Yaffle/1088850
function URLPolyfill(url, baseURL) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "es6-module-loader",
"description": "An ES6 Module Loader shim",
"version": "0.17.1",
"version": "0.17.2",
"homepage": "https://github.com/ModuleLoader/es6-module-loader",
"author": {
"name": "Guy Bedford, Luke Hoban, Addy Osmani",
Expand Down

0 comments on commit 6be8fd2

Please sign in to comment.