Git Product home page Git Product logo

Comments (21)

qingweiqm avatar qingweiqm commented on May 12, 2024 2

thanks, after disable the consoleoutput, it works.

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

what version you use?

from javascript-obfuscator.

Wain-PC avatar Wain-PC commented on May 12, 2024

I've used 0.8.0. Should it help to update to 0.8.1?

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

Only one place where []["filter"]["constructor"]("return this")() still using is following line (looks like i forgot to change this line):
https://github.com/javascript-obfuscator/javascript-obfuscator/blob/master/src/templates/custom-nodes/debug-protection-nodes/debug-protection-function-node/DebugProtectionFunctionTemplate.ts#L13

I will replace this line today on {}.constructor('debugger')()

from javascript-obfuscator.

Wain-PC avatar Wain-PC commented on May 12, 2024

Thanks! I see that this line is intended to be used with debug protection mode. However, my script has been built without debugProtection flag set to true (actually, without this flag at all, but readme says its default value is false). Is this a desired behavior?

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

maybe it is line here https://github.com/javascript-obfuscator/javascript-obfuscator/blob/0514793257b306d38b0936ec16031818b5e783c7/src/enums/JSFuck.ts
but i tested code before 0.8.0 release on ie9 in ie8 compatibility mode and it doesnt't throw any errors.

Anyway i change this lines today and i hope it helps for you.

from javascript-obfuscator.

Wain-PC avatar Wain-PC commented on May 12, 2024

Thanks again! One more issue: disableConsoleOutput option works not as expected:
With value set to true, console.log function is replaced with the following one:
image
This obviously hangs the page with an infinite loop, and surely this is not an expected behavior (this option is turned on by default!)
This also affects other console methods, such as warn, info and error.

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

One more issue: disableConsoleOutput option works not as expected

already fixed in 0.8.1. In 0.8.1 infinity loop replaced on just empty functions

from javascript-obfuscator.

Wain-PC avatar Wain-PC commented on May 12, 2024

That's correct, I was using an outdated dependency, my fault.
I'll close the issue for now, hope your fixes will resolve the initial problem.

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

reopen until fix

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

Ready in [email protected]

Please try and check.

from javascript-obfuscator.

Wain-PC avatar Wain-PC commented on May 12, 2024

Thanks, I will perform heavier autotesting on it next week. For now, I've performed several manual builds and they seem to work in IE8.

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

Nice!

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

any test results?

from javascript-obfuscator.

qingweiqm avatar qingweiqm commented on May 12, 2024

@sanex3339 hi,I'm using the webpage to do the obfuscate, the obfuscated code doesn't work in IE8.

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

Hi, show me your obfuscator options and if possible obfuscated code please.
Does the code without obfuscation work in IE8?

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

i will look into it

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

I haven't any runtime errors. How the code should work? Did you have runtime errors on IE8?

If you doesn't have any expected output to the console - set disableConsoleOutput to false. disableConsoleOutput disable console.log, console.error, console.warn and console.info output to the console.

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

Nice!

from javascript-obfuscator.

sanex3339 avatar sanex3339 commented on May 12, 2024

So, i will close this issue. If you will find any problems with ie8 - just create new issue.

from javascript-obfuscator.

lock avatar lock commented on May 12, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from javascript-obfuscator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.