Skip to content

Failed P_A_C_K_E_R.unpack test #2078

Open
@Infocatcher

Description

@Infocatcher

Tests output:

==== P_A_C_K_E_R.unpack ============================================================
---- input -------
function test (){alert ('This is a test!')}; eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return'\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\b'+e(c)+'\b','g'),k[c]);return p}('0 2=\'{Íâ–+›ï;ã†Ù¥#\'',3,3,'var||a'.split('|'),0,{}))
---- expected ----
function test (){alert ('This is a test!')}; var a='{Íâ–+›ï;ã†Ù¥#'
---- output ------
function test (){alert ('This is a test!')}; 0 2='{Íâ–+›ï;ã†Ù¥#'
---- expected-ws ------
function_test_(){alert_('This_is_a_test!')};_var_a='{Íâ–+›ï;ã†Ù¥#'
---- output-ws ------
function_test_(){alert_('This_is_a_test!')};_0_2='{Íâ–+›ï;ã†Ù¥#'
================================================================

1 tests failed.

Looks like not depends on js-engine: I see that with latest Chrome 102 (Vivaldi) and with WSH's JScript.

Also how to show hidden block with "Run the tests" on https://beautifier.io without dev tools?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions