View _コンパイル後のJSのthisの位置問題〜.md

コンパイル後にthisの位置問題でTypeError: Cannot read property 'bar' of undefinedになるになる

View Makefile
port=8081
server:
php -S localhost:$(port) -t .
View Makefile
tag=tarata/migrater
build:
docker build -f ./migrater.Dockerfile -t $(tag) .
View Makefile
tag=tarata/php-with-httpd
build:
docker build -f ./php-with-httpd -t $(tag) .
View Makefile
AWS=$(shell which aws)
ECS=$(shell which ecs-cli)
.DEFAULT_GOAL:=help
KEYNAME=ecs_cli_sample
CLUSTER=ecs-cli-sample
help:
cat Makefile
keypair/create:
View Makefile
NPM=$(shell which npm)
install: $(NPM)
$(NPM) install
webpack: $(NPM)
$(NPM) run webpack -- --config ./webpack.config.js
webpack/correct: $(NPM)
$(NPM) run webpack -- --config ./webpack.config.corrent.js
View Dockerfile
FROM php:fpm
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
View http.go
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
)
func main() {
View redundant_type_declaration.go
package main
import "fmt"
type Hoge struct {
AAA string
}
type Fuga struct {
hs map[string]Hoge