PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Objects/DisallowObjectStringIndexUnitTest.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 786 bytes
 

Contents

Class file image Download
function test(id) { this.id = id; } /**/ test.prototype = { init: function() { var x = {}; x.name = 'test'; x['phone'] = 123124324; var t = ['test', 'this'].join(''); var y = ['test'].join(''); var a = x[0]; var z = x[x['name']]; var p = x[x.name]; } }; function test() { this.errors['step_' + step] = errors; this.errors['test'] = x; this.errors['test' + 10] = x; this.errors['test' + y] = x; this.errors['test' + 'blah'] = x; this.errors[y] = x; this.errors[y + z] = x; this.permissions['workflow.cancel'] = x; } if (child.prototype) { above.prototype['constructor'] = parent; child.prototype['super'] = new above(); }