Skip to content

Commit 74ee1a3

Browse files
committed
Prevent Browserify from throwing errors in compilation [closes bestiejs#31]
1 parent b4bcf95 commit 74ee1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@
619619
if (thisBinding == oldRoot && typeof system == 'object' && (data = [system])[0]) {
620620
os || (os = data[0].os || null);
621621
try {
622-
data[1] = require('ringo/engine').version;
622+
data[1] = (data[1] = require) && data[1]('ringo/engine').version;
623623
version = data[1].join('.');
624624
name = 'RingoJS';
625625
} catch(e) {

0 commit comments

Comments
 (0)