svnlabs / google-caja

Automatically exported from code.google.com/p/google-caja
0 stars 1 forks source link

Scanner rules need updating for typed arrays on Firefox #1933

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It appears that typed array constructors are now usable as plain functions on 
Firefox, where the scanner isn't expecting fresh objects. This should be fixed 
by telling the scanner to expect fresh objects in that case.

Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Float32Array<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Float32Array)()
| toString: [object Float32Array]
Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Float64Array<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Float64Array)()
| toString: [object Float64Array]
Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Int16Array<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Int16Array)()
| toString: [object Int16Array]
Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Int32Array<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Int32Array)()
| toString: [object Int32Array]
Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Int8Array<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Int8Array)()
| toString: [object Int8Array]
Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Uint16Array<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Uint16Array)()
| toString: [object Uint16Array]
Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Uint32Array<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Uint32Array)()
| toString: [object Uint32Array]
Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Uint8Array<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Uint8Array)()
| toString: [object Uint8Array]
Problem: Object is extensible
| Path:     cajaVM.makeImports<THIS>().Uint8ClampedArray<PLAIN>()
| Program:  (0,window.cajaVM.makeImports.call(.../* [object Object] */, 
).Uint8ClampedArray)()
| toString: [object Uint8ClampedArray]

Original issue reported on code.google.com by kpreid.switchb.org on 15 Aug 2014 at 10:18