Skip to content

Commit

Permalink
Added guard against undefined versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cvasseng committed Apr 26, 2023
1 parent 4ddeee8 commit 15dc326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.js
Expand Up @@ -214,7 +214,7 @@ function embed(version, scripts, out, fn, optionals) {

let nversion = version;

if (nversion.indexOf('11') === 0) {
if (nversion && (nversion || '').indexOf('11') === 0) {
nversion += '/es5/';
}

Expand Down

0 comments on commit 15dc326

Please sign in to comment.