Announcement

Collapse
No announcement yet.

[CLOSED] [#374] [1.9] Strict javascript mode

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [CLOSED] [#374] [1.9] Strict javascript mode

    Hi

    I've been trying to run bridge.net in a constrained environment and it seems like bridge.js is incompatible with strict mode? Does that ring a bell?

    The first problem I get is that Bridge variable is not defined so here :
    Bridge = core
    JavaScript will error instead of assigning the value to a global variable Bridge.

    Next problem would be with Bridge.global:
    global: (function () { return this; })(),
    This would return undefined in strict mode and has to be replaced with
    global: Function('return this')(),
    Even after I fix it, I'm getting some problems with
    Bridge.define('Bridge.ErrorException', {
        inherits: [Bridge.Exception],
    where the inherits doesn't get passed correctly as an array so
    extends = extend ? extends[0].prototype : this.prototype;
    would fail as extends[0] is undefined
    Last edited by zedr0n; 2015-08-20 @ 12:48 AM.

    #2
    I do not think Bridge was tested in JavaScript strict mode, so this is something we're going to have to work on.

    I will discuss with the team.

    Comment


      #3
      I have created a new Issue to track this request, see

      https://github.com/bridgedotnet/Bridge/issues/374

      Comment


        #4
        The thread has been moved to the Feature Requests topic.

        Comment


          #5
          Bridge is now has the strict mode instruction. It will be included in 1.9.0 release.

          Comment

          Working...
          X