mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 910953 - Avoid strict warnings in webgl.js, r=me
This commit is contained in:
parent
b2a7636fab
commit
4d62515ddc
@ -68,6 +68,7 @@ let ShaderActor = protocol.ActorClass({
|
||||
proxy.call("compileShader", context, program, shader, this.text = oldText);
|
||||
return error;
|
||||
}
|
||||
return undefined;
|
||||
}, {
|
||||
request: { text: Arg(0, "string") },
|
||||
response: { error: RetVal("nullable:json") }
|
||||
@ -401,14 +402,14 @@ let WebGLInstrumenter = {
|
||||
|
||||
if (timing == "before" && !observer.suppressHandlers) {
|
||||
glBreak = observer.call(callbackName || funcName, context, glArgs);
|
||||
if (glBreak) return;
|
||||
if (glBreak) return undefined;
|
||||
}
|
||||
|
||||
glResult = originalFunc.apply(this, glArgs);
|
||||
|
||||
if (timing == "after" && !observer.suppressHandlers) {
|
||||
glBreak = observer.call(callbackName || funcName, context, glArgs, glResult);
|
||||
if (glBreak) return;
|
||||
if (glBreak) return undefined;
|
||||
}
|
||||
|
||||
return glResult;
|
||||
|
Loading…
Reference in New Issue
Block a user