You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(Proxy){// NOTE: cannot use `@stdlib/assert/has-proxy-support` here, as that API uses code evaluation and might violate CSPs
103
-
ndims=shape.length;
104
-
handlers={};
105
-
if(ndims===0){
106
-
handlers.get=get0d;
107
-
handlers.set=set0d;
108
-
}elseif(ndims===1){
109
-
handlers.get=get1d;
110
-
handlers.set=set1d;
111
-
}else{
112
-
handlers.get=getnd;
113
-
handlers.set=setnd;
114
-
}
115
-
returnnewProxy(this,handlers);
116
-
}
117
-
// TODO: replace with `@stdlib/console/warn` (or equivalent once available)
118
-
console.warn('WARNING: Proxy objects are not supported in the current environment. Some `FancyArray` functionality may not be available.');// eslint-disable-line no-console
0 commit comments