JSFrame.js icon indicating copy to clipboard operation
JSFrame.js copied to clipboard

problem : Uncaught TypeError: M.setFrame is not a function

Open woxman opened this issue 2 years ago • 1 comments

image

woxman avatar Jul 07 '22 09:07 woxman

Uncaught TypeError: M.setFrame is not a function
    at b.y [as constructor] (jsframe.min.js?7e9b:6:1)
    at new b (jsframe.min.js?7e9b:6:1)
    at C.createFrame (jsframe.min.js?7e9b:6:1)
    at C.create (jsframe.min.js?7e9b:6:1)

I get same error and I found that it's related to Array.prototype

Array.prototype.any_new_method = function() {}

If you add any arbitrary method to Array.prototype, jsframe will fail with this error.

version: jsframe.js-1.6.2

gowhari avatar Feb 06 '23 09:02 gowhari