Fix compat partial exec without data

This commit is contained in:
kpdecker
2014-08-15 00:38:23 -05:00
parent d05245b5f5
commit cc5de5df3c
2 changed files with 14 additions and 6 deletions
@@ -611,6 +611,8 @@ JavaScriptCompiler.prototype = {
if (this.options.data) {
params.push("data");
} else if (this.options.compat) {
params.push('undefined');
}
if (this.options.compat) {
params.push('depths');