¡@

Home 

javascript Programming Glossary: indirect

JavaScript “this” keyword

http://stackoverflow.com/questions/3127429/javascript-this-keyword

is a direct call whereas something like 0 eval ... or var indirectEval eval indirectEval ... is an indirect call to eval . See.. whereas something like 0 eval ... or var indirectEval eval indirectEval ... is an indirect call to eval . See chuckj's answer to.. 0 eval ... or var indirectEval eval indirectEval ... is an indirect call to eval . See chuckj's answer to 1 eval 'this' vs eval..

How to get the global object in JavaScript?

http://stackoverflow.com/questions/3277182/how-to-get-the-global-object-in-javascript

is compatible with any ES3 implementation. Through an indirect eval call for example use strict var get eval var global get.. var global get this The above will work because in ES5 indirect calls to eval use the global environment as both the variable.. solution will not work on ES3 implementations because an indirect call to eval on ES3 will use the variable and lexical environments..

Indirect function call in JavaScript

http://stackoverflow.com/questions/5161502/indirect-function-call-in-javascript

pattern has been getting quite popular these days to make indirect calls to eval this can be useful under ES5 strict mode to get.. will now take the second operand the eval call which is an indirect call and it will evaluate the code on the global lexical and..

How are closures and scopes represented at run time in JavaScript

http://stackoverflow.com/questions/5368048/how-are-closures-and-scopes-represented-at-run-time-in-javascript

scope. Note that this is a change in ES5 from ES3 where indirect and direct references to eval both ran in the local scope and.. x new BigObject var y 0 closure 1 eval function return 7 indirect eval evaluates in global scope function f5 var x new BigObject..

Check whether user has a Chrome extension installed

http://stackoverflow.com/questions/6293498/check-whether-user-has-a-chrome-extension-installed

directly or by using the JS classes for extensions but an indirect method until something better comes along Have your Chrome extension..

Switch statement for greater-than/less-than

http://stackoverflow.com/questions/6665997/switch-statement-for-greater-than-less-than

184ms 73ms 21ms if immediate 1.0 1.0 1.0 2.6 1.0 1.0 if indirect 1.2 1.8 3.3 3.8 2.6 1.0 switch immediate 2.0 1.1 2.0 1.0 2.8.. 20.9 10.4 switch range2 31.9 8.3 2.0 4.5 9.5 6.9 switch indirect array 35.2 9.6 4.2 5.5 10.7 8.6 array linear switch 3.6 4.1.. do something else ... if val 30000 do something else if indirect This is a variant of switch indirect array but with if statements..

(1,eval)('this') vs eval('this') in JavaScript?

http://stackoverflow.com/questions/9107240/1-evalthis-vs-evalthis-in-javascript

call but an expression that merely yields eval to be an indirect one and indirect eval calls are guaranteed to execute in global.. that merely yields eval to be an indirect one and indirect eval calls are guaranteed to execute in global scope. Things.. eval 'console.log direct call x ' 1 eval 'console.log indirect call x ' Not surprisingly heh heh this prints out direct call..

Getting a reference to the global object in an unknown environment in strict mode

http://stackoverflow.com/questions/9642491/getting-a-reference-to-the-global-object-in-an-unknown-environment-in-strict-mod

a reference to global object from within strict mode via indirect eval call use strict var global 1 eval 'this' Take a look at..