popString method

String popString()

Converts the top to a string and pops it, use this instead of pop().toString().

Implementation

String popString() {
  assert(top > 0);
  var str = lua_tostring(L, -1);
  pop();
  return str == null ? "Unknown" : to_jsstring(str);
}