mirror of
https://github.com/systemjs/systemjs.git
synced 2026-02-01 15:59:54 +00:00
hasBuffer check in try
This commit is contained in:
parent
3d097d9048
commit
e32557c826
@ -6,7 +6,7 @@ var __exec;
|
||||
|
||||
var hasBuffer = typeof Buffer != 'undefined';
|
||||
try {
|
||||
if (new Buffer('a').toString('base64') != 'YQ==')
|
||||
if (hasBuffer && new Buffer('a').toString('base64') != 'YQ==')
|
||||
hasBuffer = false;
|
||||
}
|
||||
catch(e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user