You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a TypeError when Jquery minified version is included in the source files yet I do see any errors without obfuscation.
Expected Behavior
No console errors are expected after obfuscation.
Current Behavior
This is the console log in Chrome
jquery-3.4.1.min.js:2 Uncaught TypeError: Object.defineProperty called on non-object
at Function.defineProperty (<anonymous>)
at SE.cache (jquery-3.4.1.min.js:2)
at SE.get (jquery-3.4.1.min.js:2)
at Object.add (jquery-3.4.1.min.js:2)
at Number.<anonymous> (jquery-3.4.1.min.js:2)
at Function.each (jquery-3.4.1.min.js:2)
at Sm.fn.init.each (jquery-3.4.1.min.js:2)
at GB (jquery-3.4.1.min.js:2)
at Sm.fn.init.on (jquery-3.4.1.min.js:2)
A similar error is shown in firefox
Uncaught TypeError: Object.defineProperty called on non-object
Steps to Reproduce
Upgrade to latest gulp-javascript-obfuscator
Enable sourcemaps using 'gulp-sourcemaps'
Add jquery-x.x.x.min.js to the src files
Environment
Package version used: v1.1.6
Node version used: v14.4.0
Minimal working example that will help to reproduce issue
constsourcemaps=require('gulp-sourcemaps');constjavascriptObfuscator=require('gulp-javascript-obfuscator');gulp.src('jquery-3.4.1.min.js')//Also tried with Jquery-3.5.1.pipe(sourcemaps.init()).pipe(concat('build.min.js')).pipe(javascriptObfuscator({compact: true})).pipe(sourcemaps.write()).pipe(gulp.dest('dist'));
The text was updated successfully, but these errors were encountered:
drkNsubuga
changed the title
V1.1.6 produces a TypeError with jquery
TypeError with jquery
Jul 21, 2020
Summary
I get a TypeError when Jquery minified version is included in the source files yet I do see any errors without obfuscation.
Expected Behavior
No console errors are expected after obfuscation.
Current Behavior
This is the console log in Chrome
A similar error is shown in firefox
Steps to Reproduce
Environment
Minimal working example that will help to reproduce issue
The text was updated successfully, but these errors were encountered: