local variable dereference vs index dereference

Edit on GitHub

Local variable dereference vs index

Setup

var a = 'a'
var b = { a: a }

Tests

  • local variable dereference

    c = a
  • index dereference

    d = b.a